import redis

conn = redis.Redis(host='127.0.0.1',port=6379, password='ta891qhs', encoding='utf-8')

# conn.lpush('myqueue','root')
# conn.lpush('myqueue','good')

v1 = conn.brpop('BLOCK_IP_QUEUE',timeout=5)
if v1:
    print(v1[1].decode('utf-8').split(','))